package com.study.signin_demo2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 订单
 * @author whx
 * @date 2022/2/21
 */
@Data
@TableName("`order`")
public class Order implements Serializable {

    @TableId(value = "id",type= IdType.ASSIGN_ID)
    private Long id;

    @TableField("no")
    private String no;

    @TableField("address")
    private String address;

    @TableField("amount")
    private BigDecimal amount;

    @TableField("create_time")
    private Date createTime;

    @TableField("creator")
    private String creator;

    @TableField(exist = false)
    private List<Products> productsList;

    @TableField(exist = false)
    private User user;

}
